package com.cloudcross.ssp.common.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
/**
 * 邮箱密码验证
 * 创建人：wuqiang.du
 * 创建时间：2016.04.07
 */
public class MyAuthenticator extends Authenticator {
	 String userName = null;
	 String password = null;
	 public MyAuthenticator() {
	 }
	 public MyAuthenticator(String username, String password) {
	  this.userName = username;
	  this.password = password;
	 }
	 protected PasswordAuthentication getPasswordAuthentication() {
	  return new PasswordAuthentication(userName, password);
	 }
}
